package dao;

import java.util.List;

import pojo.Deals;
import pojo.Orderstatus;
import pojo.Products;
import pojo.User;
import pojo.Orders;
import pojo.Userroles;

public interface AdminDAO {
	//deal manage 
	boolean adddeal(Deals deal);
	public List<Deals> getdeallist();
	public List<Products> getproductlistdealid(int dealid);
	boolean updateProduct(int productid);
	public Deals getdealbyid(int dealid);
	boolean removedeal(Deals deal);
	boolean removedeal(int dealid);
	boolean updatedeal(Deals deal);
	// user manage
	public List<User> getuserlist();
	public Userroles getusrolebyrole(String roles);
	boolean addUser(User user);
	boolean removeUser(User user);
	boolean updateUser(User user);
	boolean deleterelationuser(int memberid);
	User getUserbyid(int memberid);
	// order manage
	public List<Orders> getOrderlist();
	public Orders getOrderbyid(int orderid);
	public List<Orderstatus> getOrderstatusList();
	public boolean updatestatus(int statusid,int orderid);
	public boolean deleteorderdetail(int orderid);
	public Orders getorderbyid(int orderid);
	boolean removeorder(Orders order);
	boolean updateorder(Orders order);
	//product manage
	public boolean deleterelationproduct(int productid);
	public boolean removeproductbyid(int productid);
	public boolean updateProduct(int productid,String productname,float price,String model,String description,int warranty,String image1,String image2,float tax,int procatalogid,int dealid,int brandid,int conditionid,String specifications,String features,int quantity);
	public boolean addProduct(Products prd);
}
